// export const orderStatusTextFn = (row) => {
//   console.log('777777', row)
//   const { orderStatus, payStatus, refundStatus } = row
//   let orderStatusText = ''
//   console.log('订单状态转化', orderStatus, payStatus, refundStatus)
//   if (refundStatus == null && orderStatus === 0 && payStatus === 0) {
//     orderStatusText = '待付款'
//   }
//   return orderStatusText
// }
export default {
  orderStatusTextFn: orderStatusTextFn
}
function orderStatusTextFn(row) {
  const { orderStatus, payStatus, refundStatus } = row
  let orderStatusText = ''
  console.log('订单状态转化', orderStatus, payStatus, refundStatus)
  if (refundStatus == null && orderStatus === 0 && payStatus === 0) {
    orderStatusText = '待付款'
  }
  if (refundStatus == null && orderStatus === -1 && payStatus === 0) {
    orderStatusText = '订单关闭'
  }
  if (refundStatus == null && orderStatus === 0 && payStatus === 1) {
    orderStatusText = '待服务'
  }
  if (refundStatus == null && orderStatus === 2 && payStatus === 1) {
    orderStatusText = '服务中'
  }
  if (refundStatus == null && orderStatus === 4 && payStatus === 1) {
    orderStatusText = '已完成'
  }
  if (refundStatus == null && orderStatus === 0 && payStatus === 1) {
    orderStatusText = '待服务'
  }
  if (refundStatus == null && orderStatus === 3 && payStatus === 1) {
    orderStatusText = '退款中'
  }
  if (refundStatus === 2 && orderStatus === 3 && payStatus === 1) {
    orderStatusText = '拒绝退款'
  }
  if (refundStatus === 3 && orderStatus === -1 && payStatus === 1) {
    orderStatusText = '退款成功'
  }
  if (refundStatus === 4 && orderStatus === 3 && payStatus === 1) {
    orderStatusText = '退款中'
  }
  console.log('777777', orderStatusText)
  return orderStatusText
}
